package cn.com.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用户
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class SysUser extends BaseEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId
	private String id;

	@NotBlank(message = "账号不能为空")
	private String username;

	private String salt;

	@NotBlank(message = "密码不能为空")
	private String password;

	@TableField(exist = false)
	private String oldPwd;

	@TableField(exist = false)
	private String newPwd;

	private String phone;

	private String deptId;

	@TableField(exist = false)
	private String deptName;

	@TableField(exist = false)
	private String deptNo;

	private String realName;

	private String nickName;

	private String email;

	private Integer status;

	private Integer sex;

	@TableField(fill = FieldFill.INSERT)
	private Integer deleted;

	private String createId;

	private String updateId;

	private Integer createWhere;

	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@TableField(exist = false)
	private String startTime;

	@TableField(exist = false)
	private String endTime;

	@TableField(exist = false)
	private List<String> roleIds;

	@TableField(exist = false)
	private String Captcha;
	
	
	@TableField(exist = false)
    private String  identityTaxorgCode;
	@TableField(exist = false)
    private String identityName;
	@TableField(exist = false)
    private String identityId;
	
	
	@TableField(exist = false)
    private String identityTaxorgCode1;
	@TableField(exist = false)
    private String identityName1;
	@TableField(exist = false)
    private String identityId1;
	
	
	@TableField(exist = false)
    private String swryxm;
	
}